XIQS Update Device

From IQsimWiki

Jump to: navigation, search

XIQS Update Device - GSM Device Management

Description
Until API 1.4.0:

updateXIQSDevice ( Long id_device , String device_name , String ip_address , String login , String password , Long country )

Update an existing device.


Since API 1.5.0:

updateXIQSDevice ( Long id_device , String param=value , ... )

Update an existing device. The list of params is variable and is formed as [ param_name = param_value ]. The "param_name" should match names defined in the getXIQSDeviceList command.
Parameters Until API 1.4.0

Long id_device

Device Id

String device_name

Device name

String ip_address

Device IP Address

String login

Username

String password

User password

Long country

Country code. The country code references to the international phone country code ( i .e. France = 33 , Germany = 49 , etc. )
Parameters Since API 1.5.0

Long id_device

Device Id

String param_name=value. Supported value for param_name:

name - device name

ip - device ip address

username - Login name for the connection
The default login name is 'administrator'

userpass - Password for the connection
The default password is 'iqsim'

country - MCC of the country where the given device is located

keepalivedelay -

enabled -

nat -

flags - Device flags, valid only for MiFi devices.

Supported values:

0x01 - Enable additional debug traces.

0x02 - Automatic daypass activation.

pass_number

pass_extranumber

pass_duration

pass_maxdata

pass_maxlowspeeddata

pass_sliding

pass_businessinfo

countrygroup

countrygrouptype

pass_maxcountrydata

pass_countrygroup
Return Values
Return Code
Integer: OK = 1

Error Data structure ( Error Management )

Possible failure code returns
*ERR_OBJ_NOT_FOUND(404) ERR_MSG_DVC_NOT_FOUND
*ERR_UNAUTHORIZED (401) ERR_MSG_OBJ_NOT_OWNED
*ERR_SRV_INTERNAL (500) ERR_MSG_NO_DB
See Also

getXIQSDeviceList
createXIQSDevice
deleteXIQSDevice
getXIQSDevicePortMap
getXIQSDeviceMapList
mapXIQSDevice
unmapXIQSDevice
getXIQSIPConfig
updateXIQSIPConfig
rebootXIQSMachine

Personal tools
Namespaces
Variants
Views
Actions
Navigation
XIQS XML Protocol
XIQS Framework Libraries
XIQS Command List